package cn.wolfcode.luowowo.article.service;

import cn.wolfcode.luowowo.article.domain.StrategyDetail;
import cn.wolfcode.luowowo.common.query.QueryObject;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface IStrategyDetailService {
    PageInfo query(QueryObject qo);

    StrategyDetail get(Long id);


    void saveOrUpdate(StrategyDetail entity,String tags);

    String getTag(Long detailId);

    List<StrategyDetail> selectByDestId(Long destId);

    /**
     * 根据目的地查询阅读量前三的攻略
     * @param destId
     * @return
     */
    List<StrategyDetail> listVeiwnumTop3(Long destId);

    List<StrategyDetail> listAll();

    void updateState(StrategyDetail detail);

    List<StrategyDetail> list();

    /**
     * 通过主题id查询一篇攻略
     * @param themeId
     * @return
     */
    StrategyDetail selectByThemeIdOne(Long themeId);

    /**
     * 通过主题id查询所有攻略
     * @param
     * @return
     */
    List<StrategyDetail> selectByThemeId(Long themeId);

    /**
     * 通过多个地区id查询攻略
     * @param refIds
     * @return
     */
    List<StrategyDetail> selectByDestIds(Long[] refIds);

    /**
     * 通过多个条件查询攻略
     * @param themeId
     * @param refIds
     * @return
     */
    List<StrategyDetail> selectByCondition(Long themeId, Long[] refIds);

    StrategyDetail selectById(Long id);
}
